{% from "common/_formhelper.html" import render_radio %}
{{ render_radio(form.course_type) }}

{% from "common/_formhelper.html" import render_select %}
{{ render_select(form.classes) }}

{% from "common/_formhelper.html" import render_field %}
{{ render_field(form.name, placeholder=translate('姓名'), class_="form-control", required=True) }}

{% from "common/_formhelper.html" import render_radio %}
{{ render_radio(form.gender) }}

{{ render_field(form.day_of_birth, placeholder="yyyy-mm-dd", class_="form-control", required=True) }}

{{ render_field(form.parent_name, placeholder=translate('请填写家长姓名'), class_="form-control", required=True) }}

<div class="form-group">
    <label class="control-label" for="parent_phone">{{translate('家长电话')}}</label>
    <input class="form-control" id="parent_phone" name="parent_phone" placeholder="{{translate('请填写家长电话')}}" required="" type="text" value="" aria-required="true"> 
    {% if not in_user_verify_whitelist %}
    <button class="btn-sm" id="sendVerify">{{translate('发送验证码')}}</button>
    <button class="btn-sm" id="changePhone">{{translate('修改')}}</button>
    {% endif %}
</div>

{% if not in_user_verify_whitelist %}
{% from "common/_formhelper.html" import render_vcode_field %}
{{ render_vcode_field(form.verify, placeholder=translate('请填写验证码'), class_="form-control", required=True) }}
{% endif %}

{% from "common/_formhelper.html" import render_email_field %}
{{ render_email_field(form.parent_email, placeholder=translate('请填写家长Email'), class_="form-control", required=True) }}
